package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. KMSZJBSJDao;
import com.capinfo.accumulation.model.accounting.mybist. KMSZJBSJ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.KMSZJBSJServiceI;
@Service("kMSZJBSJService")
public class  KMSZJBSJServiceImpl implements  KMSZJBSJServiceI {
	
	@Autowired
	 KMSZJBSJDao  kMSZJBSJDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.kMSZJBSJDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KMSZJBSJ record) {
		return this.kMSZJBSJDao.insertSelective(record);
	}

	@Override
	public KMSZJBSJ selectByPrimaryKey(String id) {
		return this.kMSZJBSJDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KMSZJBSJ record) {
		return this.kMSZJBSJDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<KMSZJBSJ> retList = this.kMSZJBSJDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}
	
	@Override
	public List<Map<String, Object>> KjndSel(Map map) {
		return this.kMSZJBSJDao.KjndSel(map);
	}

	@Override
	public List<Map<String, Object>> KmsxSel(Map map) {
		return this.kMSZJBSJDao.KmsxSel(map);
	}

	@Override
	public List<Map<String, Object>> TzbjSel(Map map) {
		return this.kMSZJBSJDao.TzbjSel(map);
	}

	@Override
	public List<Map<String, Object>> RjzlxSel(Map map) {
		return this.kMSZJBSJDao.RjzlxSel(map);
	}

}
